import {
	mapGetters
} from 'vuex'


export default {
	computed: {
		...mapGetters('m_cart', ['total'])
	},
	// 在onShow生命周期函数中，设置tabBar的徽标
	onShow() {
		uni.setTabBarBadge({
			index: 2,
			text: this.total + ''
		})
	}
}
